/*
 * @Author: Sunye
 * @Date: 2025-03-31 15:38:17
 * @LastEditors: Sunye
 * @LastEditTime: 2025-04-11 15:38:53
 * @Description:
 */
// uno.config.ts
// import { transformerDirectives } from 'unocss'
import { defineConfig } from '@unocss/vite'
import presetAttributify from '@unocss/preset-attributify'
import presetIcons from '@unocss/preset-icons'
import presetWind3 from '@unocss/preset-wind3'

export default defineConfig({
  // ...UnoCSS
  shortcuts: {
    'bg-custom-image':
      'bg-[url(@/assets/images/headPortrait.gif)] bg-center bg-no-repeat bg-cover',
  },
  presets: [
    presetWind3(),
    presetAttributify(),
    presetIcons({
      collections: {
        carbon: () =>
          import('@iconify-json/carbon/icons.json').then((i) => i.default),
      },
    }),
  ],
  // transformers: [
  //   transformerDirectives(), // 支持 @apply 指令
  // ],

  // 添加 Element Plus 相关的工具类
  // theme: {
  //   colors: {
  //     primary: 'var(--el-color-primary)',
  //     success: 'var(--el-color-success)',
  //     warning: 'var(--el-color-warning)',
  //     danger: 'var(--el-color-danger)',
  //     info: 'var(--el-color-info)',
  //   },
  // },
})
